package com.redis.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.redis.utils.RedisUtils;


@Service
public class UserService {
	@Autowired
	private RedisUtils redisUtils;
	
	public String setUser(String key,String value){
		 redisUtils.set(key, value, 60l);
		 return "success";
	}
	
	public String getUser(String key){
		return redisUtils.getString(key);
	}
}
